// example_text_file_writer.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <Inklude/ikCLua.h>

using namespace Inklude;

int _tmain(int argc, _TCHAR* argv[])
{   
    ikCLua myLua;
    myLua.RunScriptFile("test.lua");

    double num = myLua.GetNumber("test_global_number");
    printf("%d\n", num);
    const char* str = myLua.GetString("test_global_number");
    printf(str);
    printf("\n");
    str = myLua.GetString("test_global_string");
    printf(str);
    printf("\n");


    num = myLua.GetNumberFromTable("sample_table", "id");
    printf("%d\n", num);
    str = myLua.GetStringFromTable("sample_table", "name");
    printf(str);
    printf("\n");

	return 0;
}

